package com.shigen.demo.shorturl.util;

import java.util.regex.Pattern;

/**
 * @author shigenfu
 * @date 2023/10/14 14:50
 */
public class HttpUrlValidator {

    private static final Pattern HTTP_PATTERN = Pattern.compile("^(http|https)://.*$");

    public static boolean isHttpUrl(String url) {
        return HTTP_PATTERN.matcher(url).matches();
    }
}
